<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.easidea.tim.service.saleorder.SaleOrderService"%>
<%@page import="org.springframework.web.context.WebApplicationContext"%>
<%@page import="org.springframework.web.context.support.WebApplicationContextUtils"%>
<%@page import="com.easidea.tim.entity.saleorder.SaleOrder"%>
<%
	SaleOrderService saleOrderService = new SaleOrderService();
	WebApplicationContext wac = WebApplicationContextUtils.getRequiredWebApplicationContext(this.getServletContext());
	List<SaleOrder> saleOrderlist = ((SaleOrderService)wac.getBean("saleOrderService")).GetSaleOrderList("0","","",null,null,"","1");
 %>
<?xml version="1.0" encoding="GB2312"?> 
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card title="订单填充">
	 <table columns="6" align="left">
	  <tr align="center">
	   <td>订单编号</td>
	   <td>客户名称</td>
	   <td>订单时间</td>
	   <td>创建人</td>
	   <td>操作</td>
	  </tr>
	  <%
	  	if(saleOrderlist !=null){
	  		for(int i =0;i<saleOrderlist.size();i++){
	  			SaleOrder saleOrder = (SaleOrder)saleOrderlist.get(i);

	   %>
	    <tr>
		   <td><%=saleOrder.getFlowNo() %></td>
		   <td><%=saleOrder.getCustomer().getName() %></td>
		   <td><%=saleOrder.getCreateTime().toLocaleString() %></td>
		   <td><%=saleOrder.getCreator() %></td>

		   <td><a href="com_detail.jsp?orderid=<%=saleOrder.getId() %>">填充</a></td>
		  </tr>
	  <%
	 	 }
	 	 }
	   %>
	 </table>
	</card>
	</wml>
 
